<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a="http://topnet.it/facelets"
	xmlns:fn="http://topnet.it/functions"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

THIS TEXT WILL BE REMOVED
<ui:composition>
	<!--  The label attribute is optional. Generate it if it is missing. -->
	<c:if test="${empty label}">
		<c:set var="label" value="${fieldName}" />
	</c:if>
	<c:if test="${empty headerTab}">
		<c:set var="headerTab" value="${true}" />
	</c:if>
	<!--  The sort attribute is optional. Set it to true if it is missing. -->
	<c:if test="${empty sort}">
		<c:set var="sort" value="${true}" />
	</c:if>
	<c:if test="${empty type}">
		<c:set var="type" value="outputText" />
	</c:if>
	<c:if test="${empty styleClass}">
		<c:set var="styleClass" value="" />
	</c:if>
	<h:column id="_${label}" styleClass="${styleClass}">
		<c:if test="${headerTab}">
			<f:facet name="header">
				<h:panelGroup id="_${label}Group">
					<center>${label}</center>
					<c:if test="${sort}">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					[
					<h:commandLink styleClass="smallLink" action="#{backingBean.sort}">
							<h:outputText value="asc" />
							<f:param name="by" value="${fieldName}" />
							<f:param name="order" value="asc" />
						</h:commandLink>
					,
					<!-- Sort decsending -->
						<h:commandLink styleClass="smallLink" action="#{backingBean.sort}">
							<h:outputText value="dec" />
							<f:param name="by" value="${fieldName}" />
							<f:param name="order" value="dec" />
						</h:commandLink>
					]
				</c:if>
				</h:panelGroup>
			</f:facet>
		</c:if>
		<!--  Display the field name -->
		<c:choose>
			<c:when test='${type == "outputText"}'>
				<h:outputText value="${entity[fieldName]}"
					styleClass="${styleClass}" />
			</c:when>
			<c:when test='${type == "outputDate"}'>
				<h:outputText value="${entity[fieldName]}">
					<f:convertDateTime locale="IT" type="date" dateStyle="medium" />
				</h:outputText>
			</c:when>
			<c:when test='${type == "outputDateTime"}'>
				<h:outputText value="${entity[fieldName]}">
					<f:convertDateTime type="both" dateStyle="short" />
				</h:outputText>
			</c:when>
			<c:when test='${type == "getArrayValue"}'>
				<h:outputText value="#{fn:getArrayValue(campo,entity)}" />
			</c:when>
			<c:when test='${type == "boolean"}'>
				<h:outputText id="${id}si" value="SI"
					rendered="#{entity[fieldName] == true}" />
				<h:outputText id="${id}no" value="NO"
					rendered="#{entity[fieldName] == false}" />
			</c:when>
			<c:when test='${type == "selOneM"}'>
				<h:selectOneMenu id="${id}" value="#{entityId[fieldName]}"
					readonly="#{readonly}">
					<f:selectItems value="#{entityList[fieldNameList]}" />
				</h:selectOneMenu>
			</c:when>
		</c:choose>


	</h:column>
</ui:composition>
THIS TEXT WILL BE REMOVED AS WELL

</html>
